<HTML>
 <HEAD>
  <TITLE>Ext.layout.container.HBox布局示例</TITLE>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link rel="stylesheet" type="text/css" href="../../ext-4.0/resources/css/ext-all.css" />
  <script type="text/javascript" src="../../ext-4.0/bootstrap.js"></script>
  <script type="text/javascript" src="../../ext-4.0/locale/ext-lang-zh_CN.js"></script>
  <script type="text/javascript">
	Ext.onReady(function(){
		Ext.create('Ext.panel.Panel',{
			title : 'Ext.layout.container.HBox布局示例',
			layout:{
				type : 'hbox',//水平盒布局
				align : 'stretch'//子面板高度充满父容器
			},
			height : 150,
			width : 300,
			frame : true,
			renderTo: Ext.getBody(),
			items: [{
				title: '子面板一',
				flex : 1,
				html : '1/4宽(flex=1)'
			},{
				title: '子面板二',
				flex : 1,
				html : '1/4宽(flex=1)'
			},{
				title: '子面板三',
				flex : 2,
				html : '1/2宽(flex=2)'
			}]
		});
	});
  </script>
 </HEAD>
 <BODY STYLE="margin: 10px"></BODY>
</HTML>
